#!/usr/bin/perl

while($line=<STDIN>) {
	chomp($line);
	if($line=~/^([0-9]+)$/) {
		$senNum = $1;
		print eval($senNum+1)."\n";
	}
	else {
		print $line."\n";
	}
}
